//package com.example.mongodb.mongodb.config;
//
//import org.csource.common.MyException;
//import org.csource.fastdfs.*;
//import org.springframework.beans.factory.annotation.Configurable;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import java.io.IOException;
//@Configuration
//public class FastDfsConfig {
//
//    @Bean
//    public StorageClient1 getClient() throws IOException, MyException {
//        ClientGlobal.initByProperties("fastdfs-client.properties");
//        TrackerClient tc = new TrackerClient();
//        TrackerServer ts = tc.getConnection();
//        StorageServer ss = null;
//        //定义storage 客户端
//       return  new StorageClient1(ts,ss);
//
//
//    }
//}
